class IUP_FILL
-- Creates void element, which dynamically occupies empty spaces 
-- always trying to expand itself. Its parent should be an IUP_HBOX, an IUP_VBOX
-- or a IUP_GRIDBOX, or else this type of expansion will not work. If an EXPAND 
-- is set on at least one of the other children of the box, then the fill 
-- expansion is ignored.
--
-- EXPAND: If User size is not defined, then when inside a
--	IUP_HBOX/IUP_GRID_BOX EXPAND is HORIZONTAL, when inside a IupVbox EXPAND is 
--	VERTICAL. If User size is defined then EXPAND is NO.

inherit
	IUP_CONTAINER
	IUP_WIDGET_EXPAND
	IUP_WIDGET_WID
	IUP_WIDGET_SIZE
	IUP_WIDGET_RASTERSIZE
	IUP_WIDGET_USERSIZE
	IUP_WIDGET_FONT
	IUP_WIDGET_POSITION
	IUP_WIDGET_MAXMIN_SIZE
	IUP_WIDGET_CHILD
	IUP_WIDGET_NAME
	
create {ANY}
   fill
	
feature {ANY}
	
	fill
	   -- Create a new fill.
		local
			a_fill: POINTER
		do
			a_fill := int_fill
			set_widget(a_fill)
		end
		
feature {}

	-- Internals

   int_fill: POINTER
		external "plug_in"
      alias "{
         location: "${sys}/plugins"
         module_name: "iup"
         feature_name: "IupFill()"
         }"
      end
	
end -- class IUP_FILL

-- The MIT License (MIT)

-- Copyright (c) 2016, 2017 by German A. Arias

-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-- copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in 
-- all copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-- SOFTWARE.
